package thread;

import main.Main;
import model.SimpleGoL;

/**
 * @author Xu,
 * @data 2020/11/21，
 * @time 11:12
 */
public class Thread1 extends Thread{
    private int day = Main.getDay();
    private int size = Main.getSize();
    private SimpleGoL simpleGoL = Main.getSimpleGoL();
    private int x1,width;
    public Thread1(int x1,int width){
        this.x1 = x1;
        this.width = width;
        this.simpleGoL = simpleGoL;
    }

    @Override
    public void run(){
            simpleGoL.transform(x1, width);
            try {
                Thread.sleep(1);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

    }
}
